import { getGoodsDetail } from '@/api/goods'

class Goods {
  constructor(public skuId: string, public goodsId: string) { }
  fetch(): Promise<any> {
    return new Promise((resolve, reject) => {
      getGoodsDetail(this.skuId, this.goodsId).then((res) => {
        resolve(res)
      }).catch((err) => {
        reject(err)
      })
    })
  }
}
export default Goods
